package com.dataseek.iot.mongodb.service;

import org.springframework.http.ResponseEntity;

import java.util.List;

/**
 * @author cc
 * @Title: mongodb 服务接口
 * @Description: mongodb 服务接口
 * @date 2021/10/36:45 下午
 * @since 1.0
 */
public interface IMongoService<T> {

     void save(T entity);

     void insert(T entity);

     void remove(String uid);

     void update(T user);

     List<T> findByUid(String uid);

     List<T> findByUidAndTimestamp(String uid,String timestamp);

     List<T> page(int page,String uid);

}
